/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 优先级Entity
 * @author 刘雨轩
 * @version 2017-06-12
 */
public class Prinfo extends DataEntity<Prinfo> {
	
	private static final long serialVersionUID = 1L;
	private Long num;		// num
	private String wname;		// wname
	private String name;		// name
	private Date accptime;		// accptime
	private Long iid;		// iid
	private Integer priority;		// priority
	private Date etime;		// etime
	
	public Prinfo() {
		super();
	}

	public Prinfo(String id){
		super(id);
	}

	public Long getNum() {
		return num;
	}

	public void setNum(Long num) {
		this.num = num;
	}
	
	@Length(min=1, max=64, message="wname长度必须介于 1 和 64 之间")
	public String getWname() {
		return wname;
	}

	public void setWname(String wname) {
		this.wname = wname;
	}
	
	@Length(min=1, max=512, message="name长度必须介于 1 和 512 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAccptime() {
		return accptime;
	}

	public void setAccptime(Date accptime) {
		this.accptime = accptime;
	}
	
	@NotNull(message="iid不能为空")
	public Long getIid() {
		return iid;
	}

	public void setIid(Long iid) {
		this.iid = iid;
	}
	
	@NotNull(message="priority不能为空")
	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Date getEtime() {
		return etime;
	}

	public void setEtime(Date etime) {
		this.etime = etime;
	}
	
	
	
}